//判断对象是否为空
function isEmptyObject(obj) {
	for ( var name in obj) {
		return false;
	}
	return true;
}
//隐藏块
function hide(id) {
	$(id).css({
		"display" : "none"
	});
}

//显示块
function show(id) {
	$(id).css({
		"display" : "block"
	});
}

function formatDate(date) {
	if(typeof(date) == "object") {
		var result = date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();
		return result;
	}else {
		return "";
	}
	
}